#include "TempOutput.h"

TempOutput::TempOutput( int size )
{
	values = new double[size];
	this->size = size;
	for (int i = 0; i < size; ++i)
	{
		values[i] = 0.0;
	}
}

TempOutput::TempOutput()
{
	size = 0;
}

TempOutput::~TempOutput(void)
{
}

double TempOutput::getTempFromVertex( int index )
{
	return values[index];
}

void TempOutput::setTempToVertex( int index, double val )
{
	values[index] = val;
}

bool TempOutput::isEmpty()
{
	if (size == 0)
	{
		return true;
	}
	return false;
}

double* TempOutput::toArray()
{
	return values;
}

int TempOutput::Size()
{
	return size;
}